package com.ruoyi.edh.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.edh.mapper.EdhCommissionMixMapper;
import com.ruoyi.edh.domain.EdhCommissionMix;
import com.ruoyi.edh.service.IEdhCommissionMixService;

/**
 * 易订货-组建团队收益占比Service业务层处理
 * 
 * @author xxx
 * @date 2020-09-23
 */
@Service
public class EdhCommissionMixServiceImpl implements IEdhCommissionMixService 
{
    @Autowired
    private EdhCommissionMixMapper edhCommissionMixMapper;

    /**
     * 查询易订货-组建团队收益占比
     * 
     * @param id 易订货-组建团队收益占比ID
     * @return 易订货-组建团队收益占比
     */
    @Override
    public EdhCommissionMix selectEdhCommissionMixById(Long id)
    {
        return edhCommissionMixMapper.selectEdhCommissionMixById(id);
    }

    /**
     * 查询易订货-组建团队收益占比列表
     * 
     * @param edhCommissionMix 易订货-组建团队收益占比
     * @return 易订货-组建团队收益占比
     */
    @Override
    public List<EdhCommissionMix> selectEdhCommissionMixList(EdhCommissionMix edhCommissionMix)
    {
        return edhCommissionMixMapper.selectEdhCommissionMixList(edhCommissionMix);
    }

    /**
     * 新增易订货-组建团队收益占比
     * 
     * @param edhCommissionMix 易订货-组建团队收益占比
     * @return 结果
     */
    @Override
    public int insertEdhCommissionMix(EdhCommissionMix edhCommissionMix)
    {
        return edhCommissionMixMapper.insertEdhCommissionMix(edhCommissionMix);
    }

    /**
     * 修改易订货-组建团队收益占比
     * 
     * @param edhCommissionMix 易订货-组建团队收益占比
     * @return 结果
     */
    @Override
    public int updateEdhCommissionMix(EdhCommissionMix edhCommissionMix)
    {
        return edhCommissionMixMapper.updateEdhCommissionMix(edhCommissionMix);
    }

    /**
     * 批量删除易订货-组建团队收益占比
     * 
     * @param ids 需要删除的易订货-组建团队收益占比ID
     * @return 结果
     */
    @Override
    public int deleteEdhCommissionMixByIds(Long[] ids)
    {
        return edhCommissionMixMapper.deleteEdhCommissionMixByIds(ids);
    }

    /**
     * 删除易订货-组建团队收益占比信息
     * 
     * @param id 易订货-组建团队收益占比ID
     * @return 结果
     */
    @Override
    public int deleteEdhCommissionMixById(Long id)
    {
        return edhCommissionMixMapper.deleteEdhCommissionMixById(id);
    }
}
